package com.baizhi.springboot.dao;

import com.baizhi.springboot.entity.Album;
import com.baizhi.springboot.entity.AlbumDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AlbumDao {
    List<Album> selectAlbumByPage(@Param("offset")Integer offset, @Param("limit")Integer limit);

    Integer selectCount();

    void insertAlbum(Album album);

    void deleteAlbum(Integer id);

    Album selectOneAlbum(Integer id);

    void updateAlbum(Album album);

    List<Album> selectAllAlbum();

    List<Map> getAudioNumber();

    List<AlbumDTO> getAudioNumberList();
}
